<extend name="Base:main" />
<block name="content">
    <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                系统基本设置
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">账户管理</a></li>
                <li class="am-active">系统基本设置</li>
            </ol>
            <div class="tpl-portlet-components">	
				<div class="tpl-block ">
					<div class="am-g tpl-amazeui-form">
						<div class="am-u-sm-12 am-u-md-8">
							<form class="am-form am-form-horizontal" action="" name="myfromSubmit" method="post">
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">是否支持一件代发</label>
									<div class="am-u-sm-7 float_left">
										<div class="tpl-switch" data-value="{$data.agent}">
											<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" name="poster[agent]" value="1" <eq name="data.agent" value="1">checked</eq>>
											<div class="tpl-switch-btn-view"><div></div></div>
										</div>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">是否支持锁货交易</label>
									<div class="am-u-sm-7 float_left">
										<div class="tpl-switch" data-value="{$data.lock}">
											<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" name="poster[lock]" value="1" <eq name="data.lock" value="1">checked</eq>>
											<div class="tpl-switch-btn-view"><div></div></div>
										</div>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">是否支持预售交易</label>
									<div class="am-u-sm-7 float_left">
										<div class="tpl-switch" data-value="{$data.presell}">
											<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" name="poster[presell]" value="1" <eq name="data.presell" value="1">checked</eq>>
											<div class="tpl-switch-btn-view"><div></div></div>
										</div>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">是否支持批发交易</label>
									<div class="am-u-sm-7 float_left">
										<div class="tpl-switch" data-value="{$data.wholesale}">
											<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" name="poster[wholesale]" value="1" <eq name="data.wholesale" value="1">checked</eq>>
											<div class="tpl-switch-btn-view"><div></div></div>
										</div>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">分页条数显示</label>
									<div class="am-u-sm-7 float_left">
										<span><input type="text" datatype="/^[0-9]+?$/g" ignore="ignore" name="poster[row]" errormsg="格式错误，必须为整数" value="{$data.row}" placeholder=""></span>
										<small>注意：不设置默认为每页显示20条</small>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">供应库存预警</label>
									<div class="am-u-sm-7 float_left">
										<span><input type="text" datatype="/^[0-9]+$/g"  name="poster[goods_stock_warning]" ignore="ignore" errormsg="格式错误，必须为整数" value="{$data.goods_stock_warning}" placeholder=""></span>
										<small>注意：供应库存预警可为空，默认为20</small>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">锁货临期天数预警</label>
									<div class="am-u-sm-7 float_left">
										<span><input type="text" datatype="/^[0-9]+$/g"  name="poster[goods_advent_warning]" ignore="ignore" errormsg="格式错误，必须为整数" value="{$data.goods_advent_warning}" placeholder=""></span>
										<small>注意：锁货临期天数预警可为空，默认为5天</small>
									</div>
								</div>
								<div class="am-form-group">
									<div class="am-u-sm-9 am-u-sm-push-3">
										<input type="hidden" value="{$info.id}" name="id" /> 
										<button type="submit" class="am-btn am-btn-primary">确认设置</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
				</div>

        </div>
</block>